package com.ruoyi.types.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.types.mapper.PaperTypesMapper;
import com.ruoyi.types.domain.PaperTypes;
import com.ruoyi.types.service.IPaperTypesService;

/**
 * 类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
@Service
public class PaperTypesServiceImpl implements IPaperTypesService 
{
    @Autowired
    private PaperTypesMapper paperTypesMapper;

    /**
     * 查询类型
     * 
     * @param typeId 类型主键
     * @return 类型
     */
    @Override
    public PaperTypes selectPaperTypesByTypeId(Long typeId)
    {
        return paperTypesMapper.selectPaperTypesByTypeId(typeId);
    }

    /**
     * 查询类型列表
     * 
     * @param paperTypes 类型
     * @return 类型
     */
    @Override
    public List<PaperTypes> selectPaperTypesList(PaperTypes paperTypes)
    {
        return paperTypesMapper.selectPaperTypesList(paperTypes);
    }

    /**
     * 新增类型
     * 
     * @param paperTypes 类型
     * @return 结果
     */
    @Override
    public int insertPaperTypes(PaperTypes paperTypes)
    {
        return paperTypesMapper.insertPaperTypes(paperTypes);
    }

    /**
     * 修改类型
     * 
     * @param paperTypes 类型
     * @return 结果
     */
    @Override
    public int updatePaperTypes(PaperTypes paperTypes)
    {
        return paperTypesMapper.updatePaperTypes(paperTypes);
    }

    /**
     * 批量删除类型
     * 
     * @param typeIds 需要删除的类型主键
     * @return 结果
     */
    @Override
    public int deletePaperTypesByTypeIds(Long[] typeIds)
    {
        return paperTypesMapper.deletePaperTypesByTypeIds(typeIds);
    }

    /**
     * 删除类型信息
     * 
     * @param typeId 类型主键
     * @return 结果
     */
    @Override
    public int deletePaperTypesByTypeId(Long typeId)
    {
        return paperTypesMapper.deletePaperTypesByTypeId(typeId);
    }
}
